package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ClassName: OrderDetailMapper
 * Package:
 * Description
 * 订单详情表
 * @Author xw
 * @Create 2023/11/25 20:25
 */
@Mapper
public interface OrderDetailMapper {

    /**
     * 插入数据
     * */
    public void insertBatch(List<OrderDetail> orderDetailList);

    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> getByOrderId(Long orderId);


}
